package receiver;

import service.StudentService;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;
//Start service all the time alarm system call
public class StartServiceReceiver extends BroadcastReceiver {
	@Override
  	public void onReceive(Context context, Intent intent) {
		Log.d("MyStartServiceReceiver", "start");
		Toast.makeText(context, "restart service", Toast.LENGTH_SHORT).show();
		Intent service = new Intent(context, StudentService.class);
		context.startService(service);
  	}
} 